package com.supersonic.backend.model;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToOne;

import org.hibernate.annotations.GenericGenerator;

@Entity
public class DeliverJobHistory extends BaseModel {

	@OneToOne(cascade = CascadeType.ALL,fetch=FetchType.LAZY)
	private Deliver deliver;
	
	@OneToOne(cascade = CascadeType.ALL,fetch=FetchType.LAZY)
	private Job	job;
	
	private boolean acceptStatus;

	/**
	 * @return the deliver
	 */
	public Deliver getDeliver() {
		return deliver;
	}

	/**
	 * @param deliver the deliver to set
	 */
	public void setDeliver(Deliver deliver) {
		this.deliver = deliver;
	}

	/**
	 * @return the job
	 */
	public Job getJob() {
		return job;
	}

	/**
	 * @param job the job to set
	 */
	public void setJob(Job job) {
		this.job = job;
	}

	/**
	 * @return the acceptStatus
	 */
	public boolean isAcceptStatus() {
		return acceptStatus;
	}

	/**
	 * @param acceptStatus the acceptStatus to set
	 */
	public void setAcceptStatus(boolean acceptStatus) {
		this.acceptStatus = acceptStatus;
	}

}
